Skip to main content

delegateTo

readonly delegateTo!:(
delegator: CanBeStakeCreds,
poolId: CanBePoolKeyHash,
redeemer?: CanBeData,
script_or_ref?: Script | CanResolveToUTxO
) => TxBuilderRunner

adds a delegation certificate,

redeemer and script_or_ref must be specified together; they are required if delegator is a script.

if script_or_ref is CanResolveToUTxO it will be used as reference script;

if script_or_ref is Script it will be used as script witness;

returns a reference to the same TxBuilderRunner.